import $api from './index.js'

//获取表格数据(分页的)
export const getAllGroup = async (data)=>{
    const res = await $api.post('/group/getAllGroup',data)
    return res
}
//获取表格数据(不分页的)
export const getAllGroupTwo = async (data)=>{
    const res = await $api.post('/group/getAllGroupTwo',data)
    return res
}
//添加用户组
export const getGroup = async (data)=>{
    const res = await $api.post('/group/addGroup',data)
    return res
}
//删除用户组
export const delUserGroup = async (data)=>{
    const res = await $api.post('/group/delGroup',data)
    return res
}
//修改用户组
export const UpdateUserGroup = async (data)=>{
    const res = await $api.post('/group/updateGroup',data)
    return res
}
//批量删除用户
export const delManyUserGroup = async (data)=>{
    const res = await $api.post('/group/delManyGroup',data)
    return res
}

//获取权限
export const getRoles = async (data)=>{
    const res = await $api.post('/group/bindRoles',data)
    return res
}